package com.guigu.tms.commons.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 车辆类型表
 * </p>
 *
 * @author wj
 * @since 2022-09-26
 */
@TableName("pd_truck_type")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PdTruckType implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 车辆类型id
     */
    @TableId(value = "truck_type_id", type = IdType.AUTO)
    private Integer truckTypeId;

    /**
     * id
     */
    private String id;

    /**
     * 车辆类型名称
     */
    private String name;

    /**
     * 准载重量
     */
    private BigDecimal allowableLoad;

    /**
     * 准载体积
     */
    private BigDecimal allowableVolume;

    /**
     * 长
     */
    private BigDecimal measureLong;

    /**
     * 宽
     */
    private BigDecimal measureWidth;

    /**
     * 高
     */
    private BigDecimal measureHigh;

    /**
     * 状态 0：禁用 1：正常
     */
    private Integer status;

    @TableField(exist = false)
    private List<PdGoodsType> goodsId;

    @TableField(exist = false)
    private List<Integer> ids;
}
